package com.lzhpo.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lzhpo.admin.entity.Role;
import com.lzhpo.admin.entity.User;

import java.util.List;
import java.util.Set;

/**
 * <p> Author：lzhpo </p>
 * <p> Title：</p>
 * <p> Description：</p>
 */
public interface UserService extends IService<User> {

    User findUserByLoginName(String name);

    User findUserById(String id);

    int userCount(String loginName);

    void saveUserRoles(String id, Set<Role> roleLists);

    void saveUser(User user);

    void updateUser(User user);

    void deleteUser(User user);

    void lockUser(User user);

    int updatePassWordById(Integer id, String password_old, String password_new);


    int insertNewUser(String password_old, String user_name,String nick_name);


    List<User> findUserList();

    void deleteUserById(Integer id);

    void resetPdById(Integer id);
}
